<template>
    <div>
        <el-container style="line-height: 30px;">
            <el-header style="text-align:left; font-size: 15px;height: 30px;border-radius: 15px;background-color: #d7d7ff;">
                写字楼管理
            </el-header>
            <el-main>
                <router-view/>
            </el-main>
        </el-container>
        <!-- 查询-->
        <el-table :data="users" style="width: 100%" border stripe>
            <el-table-column label="序号" prop="oid"/>
            <el-table-column label="简介" prop="oname"/>
            <el-table-column label="是否被使用" prop="status"/>
            <el-table-column label="所属楼栋" prop="binfo.bname"/>
        </el-table>
    </div>
</template>

<script>
    export default {
        name: "xzlgl",
        data(){
            return{
                users:{},
            }
        },
        created () {
            const that = this;
            this.axios.get('http://localhost:8085/Obm/select')
                .then(function (response) {
                    console.log(response);
                    that.users = response.data;
                })
        },
    }
</script>

<style scoped>

</style>